public class Woman {
    public String name;
    public int age;
    public float height;
    public float weight;

    public Man man;

    public Woman(String n, int a, float h, float w) {
        name = n;
        age = a;
        height = h;
        weight = w;
    }

    public Woman(String n, int a, float h, float w, Man m) {
        name = n;
        age = a;
        height = h;
        weight = w;
        man = m;
    }

    public void buyGood() {
        System.out.println("买东西");
    }

    public void eat() {
        System.out.println("吃饭");
    }

    public Children createChildren() {
        if (man == null) {
            return null;
        } else {
            return new Children("小" + man.name);
        }

    }
}
